import request from '@/utils/request'

// 查询休假维护用户休假列表
export function listOaVacationUser(query) {
  return request({
    url: '/user/oaVacationUser/list',
    method: 'get',
    params: query
  })
}

// 查询休假维护用户休假详细
export function getOaVacationUser(id) {
  return request({
    url: '/user/oaVacationUser/' + id,
    method: 'get'
  })
}

// 保存休假维护用户休假
export function saveOaVacationUser(data) {
  return request({
    url: '/user/oaVacationUser/save',
    method: 'post',
    data: data
  })
}

// 批量保存休假维护用户休假
export function batchSaveOaVacationUser(list) {
  return request({
    url: '/user/oaVacationUser/batchSave',
    method: 'post',
    data: list
  })
}

// 删除休假维护用户休假
export function delOaVacationUser(id) {
  return request({
    url: '/user/oaVacationUser/' + id,
    method: 'delete'
  })
}

// 导出休假维护用户休假
export function exportOaVacationUser(query) {
  return request({
    url: '/user/oaVacationUser/export',
    method: 'get',
    params: query
  })
}

// 查询全部用户的休假信息
export function list(query) {
  return request({
    url: '/user/oaVacationUser/init',
    method: 'get',
    params: query
  })
}
